package com.hippomeetsskunk.savanna.model;

public class AttributeModel {

	public double add(double state, double level, double amount) {

		if (amount > 0){
			return ModelProvider.getInstance().getQualityModel().improve(state, level, amount);
		}
		else{
			return ModelProvider.getInstance().getDecayModel().calculateQualityDecay(level, 0.0, state, -amount);
		}
		
	}
	
}
